<?php
include "type_ad.class.php";
?>
<meta charset="UTF-8">
<head>
<script type="text/javascript" src="../js/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="js/admin.js"></script>
<link rel="stylesheet" href="../css/style.css" type="text/css" media="screen" />
<!--                       CSS                       -->
<!-- Reset Stylesheet -->
<link rel="stylesheet" href="resources/css/reset.css" type="text/css" media="screen" />
<!-- Main Stylesheet -->
<link rel="stylesheet" href="resources/css/style.css" type="text/css" media="screen" />
<!-- Invalid Stylesheet. This makes stuff look pretty. Remove it if you want the CSS completely valid -->
<link rel="stylesheet" href="resources/css/invalid.css" type="text/css" media="screen" />
<link rel="stylesheet" href="../css/base.css" type="text/css" media="screen" />
</head>
<body style="background:none; margin:30px 30px 0 0;">
	<div class="content-box-header">
        <h3 style="margin:0;">商品分类管理</h3>
        <div class="clear"></div>
    </div><br>
    <p>

		<a href="#" class="new button" id="new_1">新建一级分类</a>
		<a href="#" class="new button" id="new_2">新建二级分类</a>
		<a href="#" class="new button" id="new_3">新建三级分类</a>
		<form method="POST" class="myform">
			
		</form>

		<meta charset="UTF-8">
		<script type="text/javascript" src="../js/jquery-1.7.2.min.js"></script>
		<script type="text/javascript" src="js/admin.js"></script>
		<ul style="padding:0;" class="common_bg">
			<?php
			foreach($type as $val){
				echo '<li class="p10">'.$val['name'].'<a href="?del='.$val['id'].'" onclick="return delOk();">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;删除</a><br><br>';
				foreach($val['son'] as $value){
					echo '<ul><li>┗&nbsp;&nbsp;'.$value['name'].'<a href="?del='.$value['id'].'" onclick="return delOk();">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;删除</a></li><br>';
					foreach($value['son'] as $v){
						echo '<ul><li>┗&nbsp;&nbsp;'.$v['name'].'<a href="?del='.$v['id'].'" onclick="return delOk();">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;删除</a></li><br>';
					echo '</ul>';}
				echo '</ul>';}
			echo '</li>';}
			?>
		</ul>
	</p>
</body>